package com.swt.service.impl.S_impl;

import com.swt.dao.S_dao.UpdateUserDao;
import com.swt.domain.User;
import com.swt.service.S_service.UpdateUserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service(value = "S_updateUserService")
@Transactional()
public class UpdateUserServiceImpl implements UpdateUserService {
    /*注入dao*/
    @Resource(name = "S_updateUserDao")
    private UpdateUserDao updateUserDao;

    @Override
    public void updateUser(User user) {
        updateUserDao.updateUser(user);
    }
}
